import 'package:flutter/material.dart';

class ClickView extends StatelessWidget {
  Widget child;
  VoidCallback onPressed;

  ClickView({Key? key, required this.child, required this.onPressed}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      child: child,
      onTap: onPressed,
    );
  }
}
